package com.example.servicearea.utils;

import java.util.HashMap;

public class VehicleTypeTransform
{
    public static HashMap<String, Integer> VehicleTypeMap = new HashMap();
    public static void initVehicleTypeMap() {
        VehicleTypeMap.put("UNKNOW",0);
        VehicleTypeMap.put("PassengerCar", 1);
        VehicleTypeMap.put("Poultry", 2);
        VehicleTypeMap.put("MidTruck", 2);
        VehicleTypeMap.put("LargeTruck", 2);
        VehicleTypeMap.put("Police", 3);
        VehicleTypeMap.put("SaloonCar", 3);
        VehicleTypeMap.put("Microbus", 4);
        VehicleTypeMap.put("MicroTruck", 5);
        VehicleTypeMap.put("Passerby", 6);
        VehicleTypeMap.put("Bicycle", 7);
        VehicleTypeMap.put("Tricycle", 8);
        VehicleTypeMap.put("SUV", 9);
        VehicleTypeMap.put("MPV", 9);
        VehicleTypeMap.put("SUV_MPV ", 9);
        VehicleTypeMap.put("MidPassengerCar", 10);
        VehicleTypeMap.put("Motor", 11);
        VehicleTypeMap.put("WateringCar", 11);
        VehicleTypeMap.put("Non-Motor", 12);
        VehicleTypeMap.put("Carriage", 13);
        VehicleTypeMap.put("MiniCarriage", 14);
        VehicleTypeMap.put("Pickup", 15);
        VehicleTypeMap.put("DregsCar", 18);
        VehicleTypeMap.put("MachineTruck", 19);
        VehicleTypeMap.put("MachineshopTruck", 19);
        VehicleTypeMap.put("TankCar", 20);
        VehicleTypeMap.put("OilTankTruck", 20);
        VehicleTypeMap.put("NormalTankTrunk", 20);
        VehicleTypeMap.put("ConcreteMixerTruck", 21);
        VehicleTypeMap.put("Minibus", 26);
    }
    public static Integer getVehicleTypeNo(String VehicleType) {
        Integer no = VehicleTypeMap.get(VehicleType);
        if (no == null)
            no = 0;
        return no;
    }
}
